package at.htlkaindorf.sportartikel.domain;

/**
 *
 * @author Thomas
 */
public class ProductPriceCalculation {

    private Product product;
    /**
     * 0 to 1 discount rate
     */
    private float discountRate;
    /**
     * net price (including discount rate)
     */
    private float netPrice;
    /**
     * final gross price (including discount rate)
     */
    private float grossPrice;

    public ProductPriceCalculation() {
    }

    public ProductPriceCalculation(Product product, float discountRate, float netPrice, float grossPrice) {
        this.product = product;
        this.discountRate = discountRate;
        this.netPrice = netPrice;
        this.grossPrice = grossPrice;
    }

    public void setDiscountRate(float discountRate) {
        this.discountRate = discountRate;
    }

    public void setFinalPrice(float finalPrice) {
        this.grossPrice = finalPrice;
    }

    public void setNetPrice(float netPrice) {
        this.netPrice = netPrice;
    }

    public float getNetPrice() {
        return netPrice;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public float getDiscountRate() {
        return discountRate;
    }

    public float getFinalPrice() {
        return grossPrice;
    }

    public Product getProduct() {
        return product;
    }

}
